package groovy.jmx.builder

class JmxBuilder extends FactoryBuilderSupport {

    public JmxBuilder() {
        registerFactories()
    }

    protected void registerFactories() {
        registerFactory("export", new JmxMBeanExportFactory())
        registerFactory("bean", new JmxMBeanFactory())
        registerFactory("name", new JmxObjectNameFactory())
        registerFactory("description", new JmxDescriptionFactory())
        registerFactory("desc", new JmxDescriptionFactory())
        registerFactory("attribute", new JmxAttributeFactory())
        registerFactory("attrib", new JmxAttributeFactory())
        registerFactory("operation", new JmxOperationFactory())
        registerFactory("op", new JmxOperationFactory())
        registerFactory("constructor", new JmxOperationFactory())
        registerFactory("ctor", new JmxOperationFactory())
        registerFactory("parameter", new JmxOpParamFactory())
        registerFactory("param", new JmxOpParamFactory())
    }
}